home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Puzzle / yeti.swf / scripts / __Packages / CTimeCounter.as < prev    next >
Text File  |  2006-06-07  |  295b  |  20 lines

  1. class CTimeCounter
  2. {
  3.    function CTimeCounter()
  4.    {
  5.    }
  6.    function setTime(time)
  7.    {
  8.       this.curTime = time;
  9.    }
  10.    function process(dTime)
  11.    {
  12.       this.curTime -= dTime;
  13.       return this.curTime > 0;
  14.    }
  15.    function endTime()
  16.    {
  17.       this.curTime = 0;
  18.    }
  19. }
  20.